Optimal. Leaf size=163 \[ -\frac{\left (\sqrt{6} a-2 c\right ) \log \left (3 x^2-6^{3/4} x+\sqrt{6}\right )}{8\ 6^{3/4}}+\frac{\left (\sqrt{6} a-2 c\right ) \log \left (3 x^2+6^{3/4} x+\sqrt{6}\right )}{8\ 6^{3/4}}-\frac{\left (\sqrt{6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}+\frac{\left (\sqrt{6} a+2 c\right ) \tan ^{-1}\left (\sqrt [4]{6} x+1\right )}{4\ 6^{3/4}}+\frac{b \tan ^{-1}\left (\sqrt{\frac{3}{2}} x^2\right )}{2 \sqrt{6}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12368, antiderivative size = 163, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 9, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.45, Rules used = {1876, 275, 203, 1168, 1162, 617, 204, 1165, 628} \[ -\frac{\left (\sqrt{6} a-2 c\right ) \log \left (3 x^2-6^{3/4} x+\sqrt{6}\right )}{8\ 6^{3/4}}+\frac{\left (\sqrt{6} a-2 c\right ) \log \left (3 x^2+6^{3/4} x+\sqrt{6}\right )}{8\ 6^{3/4}}-\frac{\left (\sqrt{6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}+\frac{\left (\sqrt{6} a+2 c\right ) \tan ^{-1}\left (\sqrt [4]{6} x+1\right )}{4\ 6^{3/4}}+\frac{b \tan ^{-1}\left (\sqrt{\frac{3}{2}} x^2\right )}{2 \sqrt{6}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1876
Rule 275
Rule 203
Rule 1168
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{a+b x+c x^2}{2+3 x^4} \, dx &=\int \left (\frac{b x}{2+3 x^4}+\frac{a+c x^2}{2+3 x^4}\right ) \, dx\\ &=b \int \frac{x}{2+3 x^4} \, dx+\int \frac{a+c x^2}{2+3 x^4} \, dx\\ &=\frac{1}{2} b \operatorname{Subst}\left (\int \frac{1}{2+3 x^2} \, dx,x,x^2\right )+\frac{1}{12} \left (\sqrt{6} a-2 c\right ) \int \frac{\sqrt{6}-3 x^2}{2+3 x^4} \, dx+\frac{1}{12} \left (\sqrt{6} a+2 c\right ) \int \frac{\sqrt{6}+3 x^2}{2+3 x^4} \, dx\\ &=\frac{b \tan ^{-1}\left (\sqrt{\frac{3}{2}} x^2\right )}{2 \sqrt{6}}-\frac{\left (\sqrt{6} a-2 c\right ) \int \frac{\frac{2^{3/4}}{\sqrt [4]{3}}+2 x}{-\sqrt{\frac{2}{3}}-\frac{2^{3/4} x}{\sqrt [4]{3}}-x^2} \, dx}{8\ 6^{3/4}}-\frac{\left (\sqrt{6} a-2 c\right ) \int \frac{\frac{2^{3/4}}{\sqrt [4]{3}}-2 x}{-\sqrt{\frac{2}{3}}+\frac{2^{3/4} x}{\sqrt [4]{3}}-x^2} \, dx}{8\ 6^{3/4}}+\frac{1}{24} \left (\sqrt{6} a+2 c\right ) \int \frac{1}{\sqrt{\frac{2}{3}}-\frac{2^{3/4} x}{\sqrt [4]{3}}+x^2} \, dx+\frac{1}{24} \left (\sqrt{6} a+2 c\right ) \int \frac{1}{\sqrt{\frac{2}{3}}+\frac{2^{3/4} x}{\sqrt [4]{3}}+x^2} \, dx\\ &=\frac{b \tan ^{-1}\left (\sqrt{\frac{3}{2}} x^2\right )}{2 \sqrt{6}}-\frac{\left (\sqrt{6} a-2 c\right ) \log \left (\sqrt{6}-6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac{\left (\sqrt{6} a-2 c\right ) \log \left (\sqrt{6}+6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac{\left (\sqrt{6} a+2 c\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}-\frac{\left (\sqrt{6} a+2 c\right ) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\sqrt [4]{6} x\right )}{4\ 6^{3/4}}\\ &=\frac{b \tan ^{-1}\left (\sqrt{\frac{3}{2}} x^2\right )}{2 \sqrt{6}}-\frac{\left (\sqrt{6} a+2 c\right ) \tan ^{-1}\left (1-\sqrt [4]{6} x\right )}{4\ 6^{3/4}}+\frac{\left (\sqrt{6} a+2 c\right ) \tan ^{-1}\left (1+\sqrt [4]{6} x\right )}{4\ 6^{3/4}}-\frac{\left (\sqrt{6} a-2 c\right ) \log \left (\sqrt{6}-6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}+\frac{\left (\sqrt{6} a-2 c\right ) \log \left (\sqrt{6}+6^{3/4} x+3 x^2\right )}{8\ 6^{3/4}}\\ \end{align*}
Mathematica [A] time = 0.0713316, size = 129, normalized size = 0.79 \[ \frac{-2 \tan ^{-1}\left (1-\sqrt [4]{6} x\right ) \left (\sqrt{6} a+2 \left (\sqrt [4]{6} b+c\right )\right )+2 \tan ^{-1}\left (\sqrt [4]{6} x+1\right ) \left (\sqrt{6} a-2 \sqrt [4]{6} b+2 c\right )-\left (\sqrt{6} a-2 c\right ) \left (\log \left (\sqrt{6} x^2-2 \sqrt [4]{6} x+2\right )-\log \left (\sqrt{6} x^2+2 \sqrt [4]{6} x+2\right )\right )}{8\ 6^{3/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.003, size = 241, normalized size = 1.5 \begin{align*}{\frac{a\sqrt{3}\sqrt [4]{6}\sqrt{2}}{24}\arctan \left ({\frac{\sqrt{2}\sqrt{3}{6}^{{\frac{3}{4}}}x}{6}}-1 \right ) }+{\frac{a\sqrt{3}\sqrt [4]{6}\sqrt{2}}{48}\ln \left ({ \left ({x}^{2}+{\frac{\sqrt{3}\sqrt [4]{6}x\sqrt{2}}{3}}+{\frac{\sqrt{6}}{3}} \right ) \left ({x}^{2}-{\frac{\sqrt{3}\sqrt [4]{6}x\sqrt{2}}{3}}+{\frac{\sqrt{6}}{3}} \right ) ^{-1}} \right ) }+{\frac{a\sqrt{3}\sqrt [4]{6}\sqrt{2}}{24}\arctan \left ({\frac{\sqrt{2}\sqrt{3}{6}^{{\frac{3}{4}}}x}{6}}+1 \right ) }+{\frac{b\sqrt{6}}{12}\arctan \left ({\frac{{x}^{2}\sqrt{6}}{2}} \right ) }+{\frac{c\sqrt{3}{6}^{{\frac{3}{4}}}\sqrt{2}}{72}\arctan \left ({\frac{\sqrt{2}\sqrt{3}{6}^{{\frac{3}{4}}}x}{6}}-1 \right ) }+{\frac{c\sqrt{3}{6}^{{\frac{3}{4}}}\sqrt{2}}{144}\ln \left ({ \left ({x}^{2}-{\frac{\sqrt{3}\sqrt [4]{6}x\sqrt{2}}{3}}+{\frac{\sqrt{6}}{3}} \right ) \left ({x}^{2}+{\frac{\sqrt{3}\sqrt [4]{6}x\sqrt{2}}{3}}+{\frac{\sqrt{6}}{3}} \right ) ^{-1}} \right ) }+{\frac{c\sqrt{3}{6}^{{\frac{3}{4}}}\sqrt{2}}{72}\arctan \left ({\frac{\sqrt{2}\sqrt{3}{6}^{{\frac{3}{4}}}x}{6}}+1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.44739, size = 252, normalized size = 1.55 \begin{align*} \frac{1}{48} \cdot 3^{\frac{1}{4}} 2^{\frac{3}{4}}{\left (\sqrt{3} a - \sqrt{2} c\right )} \log \left (\sqrt{3} x^{2} + 3^{\frac{1}{4}} 2^{\frac{3}{4}} x + \sqrt{2}\right ) - \frac{1}{48} \cdot 3^{\frac{1}{4}} 2^{\frac{3}{4}}{\left (\sqrt{3} a - \sqrt{2} c\right )} \log \left (\sqrt{3} x^{2} - 3^{\frac{1}{4}} 2^{\frac{3}{4}} x + \sqrt{2}\right ) + \frac{1}{24} \,{\left (3^{\frac{3}{4}} 2^{\frac{3}{4}} a - 2 \, \sqrt{3} \sqrt{2} b + 2 \cdot 3^{\frac{1}{4}} 2^{\frac{1}{4}} c\right )} \arctan \left (\frac{1}{6} \cdot 3^{\frac{3}{4}} 2^{\frac{1}{4}}{\left (2 \, \sqrt{3} x + 3^{\frac{1}{4}} 2^{\frac{3}{4}}\right )}\right ) + \frac{1}{24} \,{\left (3^{\frac{3}{4}} 2^{\frac{3}{4}} a + 2 \, \sqrt{3} \sqrt{2} b + 2 \cdot 3^{\frac{1}{4}} 2^{\frac{1}{4}} c\right )} \arctan \left (\frac{1}{6} \cdot 3^{\frac{3}{4}} 2^{\frac{1}{4}}{\left (2 \, \sqrt{3} x - 3^{\frac{1}{4}} 2^{\frac{3}{4}}\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 3.07534, size = 292, normalized size = 1.79 \begin{align*} \operatorname{RootSum}{\left (55296 t^{4} + t^{2} \left (2304 a c + 1152 b^{2}\right ) + t \left (- 288 a^{2} b + 192 b c^{2}\right ) + 9 a^{4} + 12 a^{2} c^{2} - 24 a b^{2} c + 6 b^{4} + 4 c^{4}, \left ( t \mapsto t \log{\left (x + \frac{- 13824 t^{3} a^{2} c + 27648 t^{3} a b^{2} + 9216 t^{3} c^{3} + 1728 t^{2} a^{3} b + 3456 t^{2} a b c^{2} - 2304 t^{2} b^{3} c + 216 t a^{5} - 576 t a^{3} c^{2} + 1296 t a^{2} b^{2} c + 288 t a b^{4} + 288 t a c^{4} + 288 t b^{2} c^{3} + 90 a^{4} b c - 90 a^{3} b^{3} + 60 a b^{3} c^{2} - 24 b^{5} c + 24 b c^{5}}{27 a^{6} - 18 a^{4} c^{2} + 144 a^{3} b^{2} c - 72 a^{2} b^{4} - 12 a^{2} c^{4} + 96 a b^{2} c^{3} - 48 b^{4} c^{2} + 8 c^{6}} \right )} \right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11269, size = 193, normalized size = 1.18 \begin{align*} \frac{1}{24} \,{\left (6^{\frac{3}{4}} a - 2 \, \sqrt{6} b + 2 \cdot 6^{\frac{1}{4}} c\right )} \arctan \left (\frac{3}{4} \, \sqrt{2} \left (\frac{2}{3}\right )^{\frac{3}{4}}{\left (2 \, x + \sqrt{2} \left (\frac{2}{3}\right )^{\frac{1}{4}}\right )}\right ) + \frac{1}{24} \,{\left (6^{\frac{3}{4}} a + 2 \, \sqrt{6} b + 2 \cdot 6^{\frac{1}{4}} c\right )} \arctan \left (\frac{3}{4} \, \sqrt{2} \left (\frac{2}{3}\right )^{\frac{3}{4}}{\left (2 \, x - \sqrt{2} \left (\frac{2}{3}\right )^{\frac{1}{4}}\right )}\right ) + \frac{1}{48} \,{\left (6^{\frac{3}{4}} a - 2 \cdot 6^{\frac{1}{4}} c\right )} \log \left (x^{2} + \sqrt{2} \left (\frac{2}{3}\right )^{\frac{1}{4}} x + \sqrt{\frac{2}{3}}\right ) - \frac{1}{48} \,{\left (6^{\frac{3}{4}} a - 2 \cdot 6^{\frac{1}{4}} c\right )} \log \left (x^{2} - \sqrt{2} \left (\frac{2}{3}\right )^{\frac{1}{4}} x + \sqrt{\frac{2}{3}}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]